package com.bjpowernode.money.service;

import com.alibaba.dubbo.config.annotation.Service;
import com.bjpowernode.money.mapper.FinanceAccountMapper;
import com.bjpowernode.money.model.FinanceAccount;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Service(interfaceClass = FinanceAccoutService.class,version = "1.0.0",timeout = 20000)
@Component
public class FinanceAccoutServiceImpl implements FinanceAccoutService {

    @Autowired
    FinanceAccountMapper financeAccountMapper;

    //头部的下拉信息页面 根据对应的id查询对应的账户余额
    @Override
    public FinanceAccount queryFinanceAccountByUserId(Integer id) {

        FinanceAccount financeAccount = financeAccountMapper.selectFinanceAccountByUserId(id);
        return financeAccount;
    }
}
